package com.chutoutian.vo;

import com.chutoutian.po.Address;
import com.chutoutian.po.Orders;
import lombok.Data;

import java.util.List;

@Data
public class OrdersVO extends Orders {

    private Address address;

    private List<OrdersItemVO> ordersItemVOList;

    public OrdersVO(Orders orders) {
        setId(orders.getId());
        setUserId(orders.getUserId());
        setAddressId(orders.getAddressId());
        setStatus(orders.getStatus());
        setPayMethod(orders.getPayMethod());
        setProductPrice(orders.getProductPrice());
        setTotalPrice(orders.getTotalPrice());
        setInsurance(orders.getInsurance());
        setTotalNum(orders.getTotalNum());
        setPostage(orders.getPostage());
        setCashBack(orders.getCashBack());
        setCoupons(orders.getCoupons());
        setCreateTime(orders.getCreateTime());
        setModifiedTime(orders.getModifiedTime());
        setRemark(orders.getRemark());
    }
}
